﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;
using Models;
namespace BLL
{
    public class IdentityBLL
    {
        public static List<BanDing> getBindingSele(string rfkh)
        {
            return IdentityDAL.getBindingSele(rfkh);
        }


        public static int insertIdbind(string CardId, string UserName, string pwd, string openid, string openid_wechat)
        {
            return IdentityDAL.insertIdbind(CardId, UserName, pwd, openid, openid_wechat);
        }
        public static int insertIdbind_Tel(string CardId, string UserName,string CUST_ID, string openid, string openid_wechat)
        {
            return IdentityDAL.insertIdbind_Tel(CardId, UserName, CUST_ID, openid, openid_wechat);
        }

        public static string getOpenId(string rfkh)
        {
            return IdentityDAL.getOpenId(rfkh);
        }

        public static string getOpenId_Tel(string PHONE_NO)
        {
            return IdentityDAL.getOpenId_Tel(PHONE_NO);
        }

        //获取ryxx表总数+1
        public static int getCount()
        {
            return IdentityDAL.getCount();
        }
        //通过姓名获取卡号
        public static string getRfkh(string ryxm)
        {
            return IdentityDAL.getRfkh(ryxm);
        }

        /// <summary>
        /// 获取消费限次，消费天限额,当天流水金额
        /// </summary>
        /// <param name="rfkh"></param>
        /// <returns></returns>
        public static DataTable Consumption_restriction(string rfkh, string type)
        {
            return IdentityDAL.Consumption_restriction(rfkh, type);
        }

        //查询余额
        public static DataTable Select_CUST_ID(string rfkh)
        {
            return IdentityDAL.Select_CUST_ID(rfkh);
        }

        public static string Up_ACC_DATA(string RFKH, double ACC_NO_01, double ACC_NO_02)
        {
            return IdentityDAL.Up_ACC_DATA(RFKH, ACC_NO_01, ACC_NO_02);
        }

    }
}
